package org.jjj.car.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.jjj.basic.domain.BaseDomain ;

/**
 * <p>
 * 
 * </p>
 *
 * @author jiangjianjun
 * @since 2022-11-03
 */
public class CarType extends BaseDomain{

    private static final long serialVersionUID = 1L;

    private Long id;
    private String name;
    private String icon;
    private Integer index;
    private String description;
    /**
     * 父类型id
     */
    private Long pid;
    private CarType parent;
    /**
     * 来装子类型
     */
    private List<CarType> children = new ArrayList<>();

    public CarType getParent() {
        return parent;
    }

    public void setParent(CarType parent) {
        this.parent = parent;
    }

    public List<CarType> getChildren() {
        return children;
    }

    public void setChildren(List<CarType> children) {
        this.children = children;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    @Override
    public String toString() {
        return "CarType{" +
        ", id=" + id +
        ", name=" + name +
        ", icon=" + icon +
        ", index=" + index +
        ", description=" + description +
        ", pid=" + pid +
        "}";
    }
}
